package com.chamber;

import com.chamber.business.domain.properties.JwtProperties;
import com.chamber.business.mqtt.config.MqttConfigurationProperties;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.boot.context.properties.EnableConfigurationProperties;

/**
 * 启动程序
 *
 * @author chamber
 */
@SpringBootApplication(exclude = {DataSourceAutoConfiguration.class})
@EnableConfigurationProperties(value = {MqttConfigurationProperties.class, JwtProperties.class})
public class MyApplication {

    public static void main(String[] args) {
        // System.setProperty("spring.devtools.restart.enabled", "false");
        SpringApplication.run(MyApplication.class, args);
        System.out.println("""
                项目启动成功！
                ███████╗██╗   ██╗ ██████╗ ██████╗███████╗███████╗███████╗
                ██╔════╝██║   ██║██╔════╝██╔════╝██╔════╝██╔════╝██╔════╝
                ███████╗██║   ██║██║     ██║     █████╗  ███████╗███████╗
                ╚════██║██║   ██║██║     ██║     ██╔══╝  ╚════██║╚════██║
                ███████║╚██████╔╝╚██████╗╚██████╗███████╗███████║███████║
                ╚══════╝ ╚═════╝  ╚═════╝ ╚═════╝╚══════╝╚══════╝╚══════╝""");
    }
}
